package com.insigma.yanwenlong.bookkeeping.service;

import java.sql.SQLException;
import java.util.List;

import com.insigma.yanwenlong.bookkeeping.pojo.Account;

public interface AccountService {
	//查询所有的账户
	List<Account> findaAccounts()throws SQLException;
	//增加用户，返回影响行数
	int addAccount(Account account) throws SQLException;
	//根据id查询某账户
	Account findAccountById(int id) throws SQLException;
	//修改账户，返回影响的行数
	int updateAccount(Account account) throws SQLException;
	//删除账户，返回影响的行数
	int deleteAccountById(int id) throws SQLException;
	//根据memberId删除某账户
	boolean deleteAccountBymemberId(int memberId) throws SQLException;
}
